<script setup lang="ts">

import {useTagsViewStore} from "@/pinia/stores/tags-view.ts";
import {CircleCheck} from "@element-plus/icons-vue";

const props = defineProps({
  id: {
    type: String,
    required: false
  },
  operType: {
    type: String,
    default: "0",
    required: false
  },
  saveAfterFun: {
    type: Function,
    required: false
  },
  preStepFun: {
    type: Function,
    required: false
  }
})
const router = useRouter()
const tagsViewStore = useTagsViewStore()
const closeTag = () => {

  tagsViewStore.delVisitedView({
    path: `/aps/CreateScheduling/${props.id}/{}`
  })
  router.push("/aps/ApsSchedulingVersion")
}
</script>

<template>
  <el-row>
    <CircleCheck
      style="width: 5em; height: 5em; color: #00bb99;margin: 3% 45% 0 "
    />
    <div style="margin-left: 43%; margin-top: 40px; text-align: center ;line-height: 60px">
      <el-button @click="closeTag" size="default" type="primary" icon="Select">
        创建成功，点此返回
      </el-button>
    </div>
  </el-row>
</template>

<style scoped lang="scss">

</style>
